import Routers from '@/router/index';
import linear from '@/plugins/linear';
import Store from '@/store/index';


// eslint-disable-next-line no-unused-vars
Routers.beforeEach((to, form, next) => {
    Store.dispatch('generateMenu');
    linear.start('red');
    return next();
});

Routers.afterEach(() => {
    linear.end();
});